DrawThemeMenuSeparator
NEW WITH THE APPEARANCE MANAGER
Draws an Appearance-compliant menu item separator line.
pascal OSStatus DrawThemeMenuSeparator (const Rect *inItemRect);
inItemRect
- On input, a pointer to the rectangle in which the menu item separator should be drawn. The rectangle passed should be the same height as the height returned by the function
GetThemeMenuSeparatorHeight
.- function result
- A result code; see "Result Codes".
DISCUSSION
TheDrawThemeMenuSeparator
function should be called when you are writing your own menu bar definition function and wish to coordinate a menu item separator line with the current theme.SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling theDrawThemeMenuSeparator
function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.